<%--
  Created by IntelliJ IDEA.
  User: zhangye
  Date: 2020-05-07
  Time: 11:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
          integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
    <%--<script src="js/inputValidator.js"></script>--%>
    <title>Hello, world!</title>
    <style>
        .body {
            display: inline-block;
            padding-top: 10px;
            padding-bottom: 10px;
        }
        .body .body_left {
            float: left;
            width: 240px;
            padding-right: 40px;
            padding-left: 20px;
            padding-top: 10px;
            /*padding-right: 82%;*/
        }
        .body .body_middle{
            float: left;
            width: 740px;
            padding-top: 10px;

        }
        .body .body_right{
            float: right;
            width: 240px;
            padding-right: 20px;
            padding-left: 40px;
            padding-top: 10px;
        }
        .body_middle .row{
            width: 740px;
            padding-left: 40px;
        }
        .body_bottom {
            padding-top: 20px;
            padding-right: 10px;
            padding-bottom: 10px;
            padding-left: 10px;
        }
        .body_bottom .col-sm-3 .card{
        }
    </style>
    <script src="js/pages.js"></script>
</head>
<body onload="ShowCustomerInf()">
<%@include file="common/navbar.jsp"%>
    <div class="body">
    <div class="body_left">
        <ul class="list-group">
            <li class="list-group-item text-center list-group-item-success">新书热卖榜</li>
            <li class="list-group-item list-group-item-success">1、当你学会独处</li>
            <li class="list-group-item list-group-item-success">2、引爆执行力</li>
            <li class="list-group-item list-group-item-success">3、孤城闭</li>
            <li class="list-group-item list-group-item-success">4、人月神话</li>
            <li class="list-group-item list-group-item-success">5、霍乱时期的爱情</li>
        </ul>
    </div>
        <div class="body_right">
            <ul class="list-group">
                <li class="list-group-item text-center list-group-item-info ">新书畅销榜</li>
                <li class="list-group-item list-group-item-info">1、三体</li>
                <li class="list-group-item list-group-item-info">2、生活需要断舍离</li>
                <li class="list-group-item list-group-item-info">3、冰糖炖雪梨</li>
                <li class="list-group-item list-group-item-info">4、中国经济2020</li>
                <li class="list-group-item list-group-item-info">5、云边有个小卖部</li>
            </ul>
        </div>
    <div class="body_middle">
        <div class="row" >
            <div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
                <ol class="carousel-indicators">
                    <li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
                    <li data-target="#carouselExampleIndicators" data-slide-to="1"></li>
                    <li data-target="#carouselExampleIndicators" data-slide-to="2"></li>
                    <li data-target="#carouselExampleIndicators" data-slide-to="3"></li>
                </ol>
                <div class="carousel-inner">
                    <div class="carousel-item active">
                        <img src="images/轮播/carousel1.jpg" class="d-block w-100" alt="...">
                    </div>
                    <div class="carousel-item">
                        <img src="images/轮播/carousel2.jpg" class="d-block w-100" alt="...">
                    </div>
                    <div class="carousel-item">
                        <img src="images/轮播/carousel3.jpg" class="d-block w-100" alt="...">
                    </div>
                    <div class="carousel-item">
                        <img src="images/轮播/carousel4.jpg" class="d-block w-100" alt="...">
                    </div>
                </div>
                <a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev">
                    <span class="carousel-control-prev-icon" aria-hidden="true"></span>
                    <span class="sr-only">Previous</span>
                </a>
                <a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-slide="next">
                    <span class="carousel-control-next-icon" aria-hidden="true"></span>
                    <span class="sr-only">Next</span>
                </a>
            </div>
        </div>
    </div>
</div>
    <nav class="navbar navbar-light" style="background-color: #e3f2fd;">
        <span class="navbar-brand mb-0 h1">今日推荐</span>
    </nav>
    <div class="body_bottom">
    <div class="row">
        <c:forEach var="item" items="${books}">
            <div class="col-sm-3">
                <div class="card mb-3" style="width: 14rem;">
                    <img src="images/${classifyName}/${item.bookName}.jpg" class="card-img-top" alt="...">
                    <div class="card-body">
                        <h5 class="card-title">${item.bookName}</h5>
                        <p class="card-text">${item.bookAuthor}</p>
                        <p class="card-text">￥${item.price}</p>
                        <a href="/showBookDetail?bookId=${item.bookId}" class="btn btn-primary">详情</a>
                    </div>
                </div>
            </div>
        </c:forEach>
    </div>
    </div>
</body>
</html>
